win32: properly handle show and focus
authorIgnacio Casal Quinteiro <icq@gnome.org>
Mon, 8 Feb 2016 12:20:02 +0000 (13:20 +0100)
committerIgnacio Casal Quinteiro <icq@gnome.org>
Mon, 8 Feb 2016 12:25:01 +0000 (13:25 +0100)
commiteb555979dbd457f3afddada4daf8b73f2cd66db6
treeb50f945f39fab97cb822f1590ecc2400f0e39df0
parent07a994c89f5892fd0d7fcf6b5f3448c28e75055b
win32: properly handle show and focus

The first time a window is shown we should always call SW_SHOWNORMAL.
Understand whether to call SW_SHOW or SW_SHOWNORMAL and the specific
ones for the temporary windows depending on IsWindowVisible.
This also fixes the problem when calling gtk_window_present and
the window is snapped to the left or right of the screen.

This patch is based on the patches provided by Yevgen Muntyan
and Aleksander Morgado.

https://bugzilla.gnome.org/show_bug.cgi?id=698652
gdk/win32/gdkwindow-win32.c